package com.redoor.app.stake.workflow.service;

import com.redoor.app.stake.basicdata.model.BaseStake;
import com.redoor.app.stake.workflow.model.BaseWorkorder;

/**  
 *  桩维护工单的接口
 *   
 * @author ZhangMumu  
 * @date 2018/3/30 0030 20:12
 */
public interface MaintenanceApplyWorkOrderService {
    /**
     *  生成桩维护工单
     *     创建人uuid存入结束到前置mq的对应记录的uuid
     * @author ZhangMumu
     * @date 2018/3/30 0030 20:14
     * @param
     * @return
     */
    int create(BaseStake stake,String mqUuid);
    /**
     *  桩维护提交
     *   
     * @author ZhangMumu  
     * @date 2018/3/30 0030 20:15  
     * @param   
     * @return   
     */  
    int submit(BaseWorkorder baseWorkorder);
    /**  
     *  桩维护关闭
     *   
     * @author ZhangMumu  
     * @date 2018/3/30 0030 20:16
     * @param   
     * @return   
     */  
    int close(String targetUuid);
    /**  
     *  桩维护激活  
     *   
     * @author ZhangMumu  
     * @date 2018/3/30 0030 20:27
     * @param   
     * @return   
     */  
    int active(String targetUuid);

}
